<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>模板页脚</title>
</head>
<body>
<div th:fragment="footer1">
    <div class="footer">
        我是模板页脚t1
    </div>
</div>

<div th:fragment="footer2">
    <div class="footer">
        我是模板页脚t2
    </div>
</div>

<div th:fragment="home">
    <div class="footer">
        <a th:href="@{/}">返回首页</a>
    </div>
</div>
</body>
</html>